home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DO1002.ARJ / EXEC.SCR < prev    next >
Text File  |  1991-12-29  |  2KB  |  42 lines

  1. .pg wi full clr cy
  2.     COMMAND NAME»gray«: »%t« ExecScript/EndExec »ye«
  3.  
  4.     /{ScriptName}[ {parameter1}..]
  5.     /ENDEXEC [CLEAR]»gray«
  6. /DRAW H 5 1 78
  7. .wi 1 6 79 24 #
  8.     The »%t«ExecScript»#« command allows you to run another script from
  9.     the current script. Scripts can be nested »gr«10»#« deep. When »%t«DO»#«
  10.     encounters an »%t«EndExec»#« command in a script, it returns to the
  11.     statement just after the »%t«ExecScript»#« command in the calling
  12.     program.
  13. »ye«
  14.     The number of scripts that can be nested may be affected by
  15.     the amount of memory available in your computer.
  16. .pg #
  17.  
  18.     Scripts can be passed parameters. These are stored in
  19.     variables »cy«~123script~12501»#«, »cy«~123script~12502»#« etc. These parameters are
  20.     deleted when the called script ends.
  21.  
  22.     If the »cy«CLEAR»#« parameter is added to the »%t«EndExec»#« command »ye«ALL»#«
  23.     variables created by that script are deleted.
  24. .pg clr
  25.     We'll use the »%t«/VERSION»#« command to show you where you are.
  26.  
  27. |/VERSION
  28.     Now let's execute the script »ye«TUTOR2.SCR»#« using this command
  29.  
  30. |/TUTOR2
  31. .clr #
  32. /VERSION
  33.     We are now back in the original »gr«EXEC.SCR»ye« file.»#«
  34.     Again, notice the »%t«/VERSION»#« display.
  35.  
  36.     »wh«This tutorial is set up as a series of scripts.»#« Each
  37.     script handles one aspect of the tutorial such as a single
  38.     command. You can examine this script for more information
  39.     about the »%t«ExecScript»#« command.
  40.  
  41. /ENDEXEC CLEAR
  42.